<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021-3-6
  Time: 20:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    /*最简单的方式,阻止未登入用户进来该页面，后面用filter实现*/
    /*Object attribute = request.getSession().getAttribute(Constant.LOGIN_ATTRIBUTE);
    if (attribute == null) {
        response.sendRedirect(getServletConfig().getServletContext().getContextPath() + "/login.jsp");
    }*/
%>
<h1>success</h1>

<a href="${pageContext.request.contextPath}/servlet/logout">注销</a>
</body>
</html>
